import request from '@/utils/request';
import { AxiosPromise } from 'axios';

/**
 * 获取编号
 */
export const getCode = async (prefix?: string): AxiosPromise<any> => {
  return await request({
    url: '/get-code',
    method: 'get',
    params: { prefix: prefix }
  });
};
